import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
n = 1000 # 设定随机数的数量
vector = [] # 设定一个空集
for i in range(n):  # 随机生成数据并储存到集合
    x1 = np.random.normal(loc = 0.0, scale = 0.66)
    y1 = x1*0.1 + 0.3 + np.random.normal(0.0, 0.03)
    vector.append([x1, y1])

x_data = [v[0] for v in vector]
y_data = [v[1] for v in vector]
plt.plot(x_data, y_data, 'ro', marker = '^', c = 'blue', label = 'original_data')
plt.legend()
plt.show()

